import fetch from "./fetch";
//首页请求
export const ApiGetHomeData = () => fetch("/6666", {}, "GET");
//登录请求
export const ApiLogin = (params: object) => fetch("/1024/login", params);
//注册请求
export const ApiRegister= (params: object) => fetch("/1024/register", params);
//快速刷题
export const ApiQuickData = () => fetch("/4698",{},"GET");
//切换学科
export const ApiToggleData = (actionCode:string) => fetch(`/6666/${actionCode}`,{},"GET");
//切换学科
export const ApiToggleSideData = () => fetch("/6666/field",{},"GET");
//设置默认学科
export const ApiSetDefault= (actionCode:string) => fetch(`/6666/${actionCode}`,{});
//练习刷题 ApiPratice
export const ApiPratice = (actionCode:string,testType:string) => fetch(`/1314/${actionCode}/${testType}`, {}, "GET");
//获取题目列表信息 
export const ApiQdTest = (params: object) => fetch("/1314", params);
//提交答案内容
export const ApiQdTestPut = (params: object) => fetch("/1314", params,"PUT");